package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.DigitalCollectionProductInfoAuctionUserBiddingResults;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.AuctionConsumeAdminPageVO;
import com.sc.nft.entity.vo.AuctionDataDetailsVO;
import com.sc.nft.entity.vo.AuctionUserBiddingAdminPageVO;
import com.sc.nft.entity.vo.UserAuctionWinVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户拍卖结果表 Mapper 接口
 * </p>
 *
 * @author liGen
 * @since 2024-09-05
 */
@Mapper
public interface DigitalCollectionProductInfoAuctionUserBiddingResultsMapper extends BaseMapper<DigitalCollectionProductInfoAuctionUserBiddingResults> {

    IPage<UserAuctionWinVO> auctionWinList(Page mp,@Param("productId") Long productId);

    void saveList(@Param("digitalCollectionProductInfoAuctionUserBiddingResultsList") List<DigitalCollectionProductInfoAuctionUserBiddingResults> digitalCollectionProductInfoAuctionUserBiddingResultsList);


    AuctionDataDetailsVO auctionDataDetails(@Param("productId") Long productId);


    Page<AuctionUserBiddingAdminPageVO> auctionUserBiddingAdminPage(@Param("productId") Long productId, @Param("userTel") String userTel, @Param("progress") Integer progress, Page page);



}
